<%@ page import="books4africa.Donation" %>

<div class="fieldcontain ${hasErrors(bean: donationInstance, field: 'book', 'error')} required">
	<label for="book">
		<g:message code="donation.book.label" default="Book" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="book" name="book.id" from="${books4africa.Books.list()}" optionKey="id" required="" value="${donationInstance?.book?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: donationInstance, field: 'donationDate', 'error')} required">
	<label for="donationDate">
		<g:message code="donation.donationDate.label" default="Donation Date" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="donationDate" precision="day"  value="${donationInstance?.donationDate}"  />
</div>


<div class="fieldcontain ${hasErrors(bean: donationInstance, field: 'bookQty', 'error')} required">
	<label for="bookQty">
		<g:message code="donation.bookQty.label" default="Book Qty" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="bookQty" required="" size="4" value="1"/>
</div>

